package view;

import java.awt.Color;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.border.TitledBorder;

import com.jgoodies.forms.factories.FormFactory;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.RowSpec;

public class PanelThietBiDetail extends JPanel {
	private static final long serialVersionUID = -6716591459929326461L;
	private JTextField textField_6;
	private JTextField textField_7;
	private JTextField textField_8;
	private JTextField textField_9;
	private JComboBox<String> textField_10;
	private JTextField textField_11;
	private JTextField textField_12;

	/**
	 * Create the panel.
	 */
	public PanelThietBiDetail() {
		setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"),
				"Chi ti\u1EBFt thi\u1EBFt b\u1ECB", TitledBorder.LEADING,
				TitledBorder.TOP, null, new Color(51, 153, 255)));
		setLayout(new FormLayout(new ColumnSpec[] {
				FormFactory.DEFAULT_COLSPEC,
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("default:grow"),
				FormFactory.RELATED_GAP_COLSPEC,
				FormFactory.DEFAULT_COLSPEC,
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("default:grow"),},
			new RowSpec[] {
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,}));

		JLabel lblNewLabel = new JLabel("Tên thiết bị");
		add(lblNewLabel, "1, 2, left, default");

		textField_7 = new JTextField();
		add(textField_7, "3, 2, fill, default");
		textField_7.setColumns(10);

		JLabel lblNewLabel_1 = new JLabel("Ngày nhập");
		add(lblNewLabel_1, "5, 2, left, default");

		textField_6 = new JTextField();
		add(textField_6, "7, 2, fill, default");
		textField_6.setColumns(10);

		JLabel lblNewLabel_2 = new JLabel("Nhà cung cấp");
		add(lblNewLabel_2, "1, 4, left, default");

		textField_9 = new JTextField();
		add(textField_9, "3, 4, fill, default");
		textField_9.setColumns(10);

		JLabel lblNewLabel_3 = new JLabel("Số lượng");
		add(lblNewLabel_3, "5, 4, left, default");

		textField_8 = new JTextField();
		add(textField_8, "7, 4, fill, default");
		textField_8.setColumns(10);

		JLabel lblNewLabel_6 = new JLabel("Loại hàng");
		add(lblNewLabel_6, "1, 6, left, default");

		textField_10 = new JComboBox<String>();
		add(textField_10, "3, 6, fill, default");

		JLabel lblNewLabel_5 = new JLabel("Giá mua");
		add(lblNewLabel_5, "5, 6, left, default");

		textField_11 = new JTextField();
		add(textField_11, "7, 6, fill, default");
		textField_11.setColumns(10);

		JLabel lblNewLabel_7 = new JLabel("Thời gian BH");
		add(lblNewLabel_7, "1, 8, left, default");

		textField_12 = new JTextField();
		add(textField_12, "3, 8, fill, default");
		textField_12.setColumns(10);

		JLabel lblNewLabel_4 = new JLabel("Giá bán");
		add(lblNewLabel_4, "5, 8, left, default");

		JTextField comboBox = new JTextField();
		add(comboBox, "7, 8, fill, default");
	}

}
